// 引入路由
import React from "react"

//引入组件 
import HotelInfo from "@/pages/Room/Info"
import HotelReserve from "@/pages/Room/Reserve"
import HotelOrderPay from "@/pages/Room/Pay"
import HotelComment from "@/pages/Room/Comment"


// 创建子路由列表
const RouterList = [
    {
        path:"info",
        element:HotelInfo,
    },
    {
        path:"reserve",
        element:HotelReserve,
        auth:true
    },
    {
        path:"pay",
        element:HotelOrderPay,
        auth:true
    },
    {
        path:"comment",
        element:HotelComment,
    },
]


// 创建父组件，仅仅作为容器
const ParentRouter = () => <React.Router.Outlet/>


// 创建路由列表
const Routes = [
    {
        path:"/room",
        element:ParentRouter,
        children:RouterList
    }
]

export default Routes